package com.cvpoc.model;

import java.io.Serializable;

public class Editeur implements Serializable {

	private static final long serialVersionUID = -4797729637094222572L;
	private int id;
	private String cleLibelle;

	public Editeur(String cleLibelle) {
		this.cleLibelle = cleLibelle;
	}

	public Editeur() {
		super();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getCleLibelle() {
		return cleLibelle;
	}

	public void setCleLibelle(String cleLibelle) {
		this.cleLibelle = cleLibelle;
	}

	@Override
	public String toString() {
		return "Editeur [id=" + id + ", libelle=" + cleLibelle + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Editeur other = (Editeur) obj;
		if (id != other.id)
			return false;
		return true;
	}

}
